package com.walter.prop;

import com.walter.condition.HelloCondition;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Conditional;

@Conditional(HelloCondition.class)
@ConfigurationProperties(prefix = "com.walter")
public class HelloServiceProperties {

    private String name = "walter";

    private String hobby = "game";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
}
